/ Assembly List / LJCNetCommon / NetCommon / TextToBase64

Namespace - LJCNetCommon


Parameters
text - The Text value.

Returns

The Base64 string.

Syntax

C#
public static String TextToBase64(String text)

Encodes a Text value to a Base64 value. (E)

Example

C#
using LJCNetCommon;
        
// Encodes a Text value to a Base64 value.
private static void TextToBase64()
{
  string text = "Text";

  // Encodes text to a Base64 string.
  string base64 = NetCommon.TextToBase64(text);

  // Check the text.
  text = NetCommon.Base64ToText(base64);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.